package com.domain.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class ModifyUserDTO {

    @NotNull(message = "用户编号不能为空")
    @Schema(description = "用户id", example = "1")
    private Integer userId;

    @Schema(description = "用户昵称", example = "小闲闲")
    private String nickname;

//    @NotBlank(message = "邮箱不能为空")
    @Schema(description = "用户邮箱", example = "xxx@.email")
    private String email;

//    @NotBlank(message = "头像不能为空")
    @Schema(description = "头像地址url", example = "url")
    private String avatar;

    @Min(value = 0, message = "年龄最小为0")
    @Schema(description = "用户年龄", example = "114")
    private Integer age;

//    @NotNull(message = "用户性别不能为空")
    @Schema(description = "用户性别", example = "0（男），1（女）")
    private Integer gender;
}
